using System;

namespace PHSRAG.Insight21.InsightWebControls
{
	/// <summary>
	/// OrganizationSelectors is a control that displays four ASP.NET dropdown list controls.
	/// These controls are dynamically generated based on the logged in users organization
	/// access starting at the Domain, Institution, Department and Unit level. Therefore,
	/// changing any of the higher Organization dropdown value (eg. Institution) will
	/// reload all the lower organization dropdowns (Departments and Units) with the departments
	/// in that institution that the user has access to.
	/// 
	/// This control extends OrganizationSelectors, and always loads values for the OrganizationSelector, 
	/// regardless of the role on the userContext
	/// </summary>
	public class ContextlessOrganizationSelectors : OrganizationSelectors
	{
		/// <summary>
		/// Forces loading of the OrganizationSelectors
		/// </summary>
		/// <param name="userContext">throwaway userContext</param>
		/// <returns>true</returns>
		protected override bool UserIsAuthorized(PHSRAG.Insight21.Context.UserContext userContext)
		{
			return true;
		}
	}
}
